<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns the encoding of the linked SQLite library</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.sqlite-libencoding" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">sqlite_libencoding</h1>
  <p class="verinfo">(PHP 5 &lt; 5.4.0, PECL sqlite &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">sqlite_libencoding</span> &mdash; <span class="dc-title">Returns the encoding of the linked SQLite library</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.sqlite-libencoding-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>sqlite_libencoding</strong></span>
    ( <span class="methodparam">void</span>
   ) : <span class="type">string</span></div>

  <p class="para rdfs-comment">
   The SQLite library may be compiled in either <em>ISO-8859-1</em>
   or <em>UTF-8</em> compatible modes. This function allows you to
   determine which encoding scheme is used by your version of the library.
  </p>
  <div class="warning"><strong class="warning">Warning</strong>
   <p class="para">
    The default PHP distribution builds <var class="filename">libsqlite</var> in
    <em>ISO-8859-1</em> encoding
    mode.  However, this is a misnomer; rather than handling
    <em>ISO-8859-1</em>, it operates according to your current
    locale settings for string comparisons and sort ordering. So, rather
    than <em>ISO-8859-1</em>, you should think of it as being
    &#039;<em>8-bit</em>&#039; instead.
   </p>
  </div>
  <p class="para">
   When compiled with <em>UTF-8</em> support, sqlite handles encoding and decoding
   of <em>UTF-8</em> multi-byte character sequences, but does not yet do a complete
   job when working with the data (no normalization is performed for
   example), and some comparison operations may still not be carried out
   correctly.
  </p>
  <div class="warning"><strong class="warning">Warning</strong>
   <p class="para">
    It is not recommended that you use PHP in a web-server configuration
    with a version of the SQLite library compiled with <em>UTF-8</em> support, since
    <var class="filename">libsqlite</var> will abort the process if it detects a problem with the
    <em>UTF-8</em> encoding.
   </p>
  </div>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.sqlite-libencoding-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the library encoding.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.sqlite-libencoding-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><strong>sqlite_lib_version()</strong></span></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>